<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%     
	String path = request.getContextPath();     
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";     
%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看模块</title>
    <base href="<%=basePath%>"/>
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <style type="text/css">
    	fieldset,legend,form,table,tr,td,textarea{margin:0;padding:0}
    	table{margin:10px 10px};
  		td{line-height: 40px;}
  		label {font-weight:bold;}
	  input[type="text"]{width:250px;}
	  input[type="password"]{width:250px;}
	  input[type="textarea"]{width:250px;}  		
    </style>
  </head>
  
  <body>
    <fieldset>
      <legend>查看软件模块：</legend>  
        <table>
          <tr>
          <td><label for="projectId">项目：</label></td>
            <td>
            	<select  disabled="disabled">
                  <c:forEach items="${projectList}" var="p">
	                <option  <c:if test="${module.projectId == p.id}">selected</c:if> >${p.name}</option>
	              </c:forEach>
		       </select>  	
            </td>
          </tr> 
          <tr>
            <td><label for="name">名称：</label></td>
            <td>
            	<input type="text" value="${module.name}" disabled="disabled"/>
            </td>
          </tr> 
          <tr>
            <td><label for="value">父模块：</label></td>
            <td>
              <input type="text" value="${pName}" disabled="disabled"/>
            </td>
          </tr>
          <tr>
            <td><label>状态：</label></td>
            <td>
                 <select name="status" id="status" disabled="disabled">
		                <c:forEach items="${statusList}" var="s">
			                <option value="${s.value}" <c:if test="${module.status == s.value}">selected</c:if> >${s.name}</option>
			            </c:forEach>
		         </select>  	
            </td>
          </tr>            
          <tr>
            <td valign="top"><label for="description">描述：</label></td>
            <td valign="top"><textarea cols="40" rows="3"><c:out value="${module.description }"/></textarea></td>
          </tr>                   
          <tr>
            <td></td>
            <td>
            	<input type="button" id="btn_back" value="返回" onclick="javascript:history.go(-1);" style="width:80px;" />
            </td>
          </tr>
        </table>  
    </fieldset>  
  </body>
</html>